/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

import javax.swing.JDialog;
import javax.swing.JLabel;

/**
 * Shows an error dialog, when the 
 */
public class ErrorDialog extends JDialog {
	
	public ErrorDialog(String errorMsg) {
		setModal(true);
		setLocationRelativeTo(null);
		setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		
		setTitle("Invalid data");
		add(new JLabel(errorMsg));
		
		pack();
		setVisible(true);
	}
}
